 // 开发版本
 const devConfig = {
   Debug: true,
   AppId: 'wx97f63367fed18eef',
   QmapKey: 'I7VBZ-UYQW3-MWN3C-YPHNW-I67PE-KUF4Q',
   API: "https://api.hangzhouyizuke.com",
   Title: '易租客商家',
   FddAppId: 'wxa1439f77c6d06a15'
 }

 // 体验版本
 const trialConfig = {
   Debug: true,
   AppId: 'wx97f63367fed18eef',
   QmapKey: 'I7VBZ-UYQW3-MWN3C-YPHNW-I67PE-KUF4Q',
   API: 'https://api.hangzhouyizuke.com',
   Title: '易租客商家',
   FddAppId: 'wxa1439f77c6d06a15'
 }


 // 发布版本
 const releaseConfig = {
   Debug: false,
   AppId: 'wx97f63367fed18eef',
   QmapKey: 'I7VBZ-UYQW3-MWN3C-YPHNW-I67PE-KUF4Q',
   API: 'https://api.hangzhouyizuke.com',
   Title: '易租客商家',
   FddAppId: 'wxa1439f77c6d06a15'
 }

 export default {
   getConfig() {
     const info = wx.getAccountInfoSync()
     let config = {}
     switch (info.miniProgram.envVersion) {
       case 'develop':
         config = devConfig
         break
       case 'trial':
         config = trialConfig
         break
       case 'release':
         config = releaseConfig
         break
       default:
         config = releaseConfig
         break
     }
     if (info.miniProgram.appId) {
       config.AppId = info.miniProgram.appId
     }
     config.Version = info.miniProgram.version || '1.3.6'
     return config
   }
 }